package com.qihang.core.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "article")
@Entity
public class ArticleEntity {

	private int articleId;
	private String articleTitle;

	private String articleDescribe;

	private String articleContent;

	private String TitleImageURL;

	private String uid;

	private Date createTime;

	private long readNumber;

	private String articleImageURL1;
	private String articleImageURL2;
	private String articleImageURL3;
	
	private int pageNo;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "articleId", nullable = false, length = 9)
	public int getArticleId() {
		return articleId;
	}

	public void setArticleId(int articleId) {
		this.articleId = articleId;
	}

	@Column(name = "articleTitle", nullable = false, length = 20)
	public String getArticleTitle() {
		return articleTitle;
	}

	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}

	@Column(name = "articleDescribe", nullable = false, length = 20)
	public String getArticleDescribe() {
		return articleDescribe;
	}

	public void setArticleDescribe(String articleDescribe) {
		this.articleDescribe = articleDescribe;
	}

	@Column(name = "articleContent", nullable = false, length = 20)
	public String getArticleContent() {
		return articleContent;
	}

	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}

	@Column(name = "TitleImageURL", nullable = false, length = 20)
	public String getTitleImageURL() {
		return TitleImageURL;
	}

	public void setTitleImageURL(String titleImageURL) {
		TitleImageURL = titleImageURL;
	}

	@Column(name = "uid", nullable = false, length = 20)
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	@Column(name = "createTime", nullable = false, length = 20)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "readNumber", nullable = false, length = 20)
	public long getReadNumber() {
		return readNumber;
	}

	public void setReadNumber(long readNumber) {
		this.readNumber = readNumber;
	}

	@Column(name = "articleImageURL1", nullable = false, length = 20)
	public String getArticleImageURL1() {
		return articleImageURL1;
	}

	public void setArticleImageURL1(String articleImageURL1) {
		this.articleImageURL1 = articleImageURL1;
	}

	@Column(name = "articleImageURL2", nullable = false, length = 20)
	public String getArticleImageURL2() {
		return articleImageURL2;
	}

	public void setArticleImageURL2(String articleImageURL2) {
		this.articleImageURL2 = articleImageURL2;
	}

	@Column(name = "articleImageURL3", nullable = false, length = 20)
	public String getArticleImageURL3() {
		return articleImageURL3;
	}

	public void setArticleImageURL3(String articleImageURL3) {
		this.articleImageURL3 = articleImageURL3;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	@Override
	public String toString() {
		return "ArticleEntity [articleId=" + articleId + ", articleTitle="
				+ articleTitle + ", articleDescribe=" + articleDescribe
				+ ", articleContent=" + articleContent + ", TitleImageURL="
				+ TitleImageURL + ", uid=" + uid + ", createTime=" + createTime
				+ ", readNumber=" + readNumber + ", articleImageURL1="
				+ articleImageURL1 + ", articleImageURL2=" + articleImageURL2
				+ ", articleImageURL3=" + articleImageURL3 + ", pageNo="
				+ pageNo + "]";
	}

}
